<?php
if (!defined('XOOPS_ROOT_PATH')) exit();

require_once XOOPS_MODULE_PATH. '/scuttle/class/AbstractIndexAction.class.php';
require_once XOOPS_MODULE_PATH. '/scuttle/admin/include/functions.php';

class Scuttle_indexAction extends Scuttle_AbstractIndexAction
{
	var $mConfig      = array();

	var $breadCrumbs     = array();
	var $confirmMssage   = null;
	var $moduleHeader    = null;
	var $menuDescription = null;

	function _getBaseUrl()
	{
		return './index.php';
	}

	function prepare(&$controller, &$xoopsUser, $moduleConfig)
	{
		$this->mConfig = $moduleConfig;
	}

	function getDefaultView(&$controller, &$xoopsUser)
	{

		return SC_FRAME_VIEW_INDEX;
	}

	function executeViewIndex(&$controller, &$xoopsUser, &$render)
	{
		global $adminmenu;

		$this->breadCrumbs[] = array('name' => _AD_SC_MAIN) ;
		$render->setTemplateName('scuttle_index.html');

		$render->setAttribute('module_info'   , getModuleInfo());
		$render->setAttribute('module_header' , $this->moduleHeader);
		$render->setAttribute('bread_crumbs'  , $this->breadCrumbs);
		$render->setAttribute('set_menu'      , $adminmenu );
		$render->setAttribute('set_menu_no'   , 1);
		$render->setAttribute('confirm_mssage', $this->confirmMssage);

	}

}
?>